package soar.test.thread.queue;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class App
{
    private static final Logger logger = LoggerFactory.getLogger(App.class);

    public static void main(String[] args)
    {
        new App().run();
    }

    private void run()
    {
        try
        {
            for (int i = 0; i < 4; i++)
            {
                new Thread(new Receiver()).start();
            }

            new Thread(new Sender()).start();
        }
        catch (Exception e)
        {
            logger.info("fail, {}", e);
        }
    }
}
